const webp = require("webp-converter");

webp.cwebp("input.jpg","output.webp","-q 100",function(status, err){
    console.log(status);
    console.log(error);
})